home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sys / RCS / termios.h,v < prev    next >
Text File  |  1991-03-29  |  4KB  |  192 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     91.03.29.18.06.51;  author shirriff;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.01.06.07.06.35;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Added IEXTEN
  27. @
  28. text
  29. @/*
  30.  * termios.h --
  31.  *
  32.  *    Declarations of structures and flags for controlling the `termio'
  33.  *      general terminal interface.
  34.  *
  35.  * Copyright 1989 Regents of the University of California
  36.  * Permission to use, copy, modify, and distribute this
  37.  * software and its documentation for any purpose and without
  38.  * fee is hereby granted, provided that the above copyright
  39.  * notice appear in all copies.  The University of California
  40.  * makes no representations about the suitability of this
  41.  * software for any purpose.  It is provided "as is" without
  42.  * express or implied warranty.
  43.  *
  44.  * $Header: /sprite/src/lib/include/sys/RCS/termios.h,v 1.1 89/01/06 07:06:35 rab Exp $
  45.  */
  46.  
  47. #ifndef _TERMIOS_
  48. #define _TERMIOS_
  49.  
  50. /*
  51.  * input flag bits
  52.  */
  53. #define    IGNBRK    0x00000001
  54. #define    BRKINT    0x00000002
  55. #define    IGNPAR    0x00000004
  56. #define    PARMRK    0x00000008
  57. #define    INPCK    0x00000010
  58. #define    ISTRIP    0x00000020
  59. #define    INLCR    0x00000040
  60. #define    IGNCR    0x00000080
  61. #define    ICRNL    0x00000100
  62. #define    IUCLC    0x00000200
  63. #define    IXON    0x00000400
  64. #define    IXANY    0x00000800
  65. #define    IXOFF    0x00001000
  66. #define    IMAXBEL    0x00002000
  67.  
  68. /*
  69.  * output flag bits
  70.  */
  71. #define    OPOST    0x00000001
  72. #define    OLCUC    0x00000002
  73. #define    ONLCR    0x00000004
  74. #define    OCRNL    0x00000008
  75. #define    ONOCR    0x00000010
  76. #define    ONLRET    0x00000020
  77. #define    OFILL    0x00000040
  78. #define    OFDEL    0x00000080
  79. #define    NLDLY    0x00000100
  80. #define    CRDLY    0x00000600
  81. #define    TABDLY    0x00001800
  82. #define    TAB3    XTABS
  83. #define    BSDLY    0x00002000
  84. #define    VTDLY    0x00004000
  85. #define    VT0    0
  86. #define    VT1    0x00004000
  87. #define    FFDLY    0x00008000
  88. #define    PAGEOUT    0x00010000
  89. #define    WRAP    0x00020000
  90.  
  91. /*
  92.  * control flag bits
  93.  */
  94. #define    CBAUD    0x0000000f
  95. #define    CSIZE    0x00000030
  96. #define    CS5    0
  97. #define    CS6    0x00000010
  98. #define    CS7    0x00000020
  99. #define    CS8    0x00000030
  100. #define    CSTOPB    0x00000040
  101. #define    CREAD    0x00000080
  102. #define    PARENB    0x00000100
  103. #define    PARODD    0x00000200
  104. #define    HUPCL    0x00000400
  105. #define    CLOCAL    0x00000800
  106. #define    LOBLK    0x00001000
  107. #define    CIBAUD    0x000f0000
  108. #define    CRTSCTS    0x80000000
  109.  
  110. #define    IBSHIFT    16
  111.  
  112. /*
  113.  * line discipline flag bits
  114.  */
  115. #define    ISIG    0x00000001
  116. #define    ICANON    0x00000002
  117. #define    XCASE    0x00000004
  118. #define    ECHOE    0x00000010
  119. #define    ECHOK    0x00000020
  120. #define    ECHONL    0x00000040
  121. #define    ECHOCTL    0x00000200
  122. #define    ECHOPRT    0x00000400
  123. #define    ECHOKE    0x00000800
  124. #define    DEFECHO    0x00001000
  125. #define IEXTEN    0x00008000
  126.  
  127.  
  128. /*
  129.  * control characters
  130.  */
  131. #define    VINTR        0
  132. #define    VQUIT        1
  133. #define    VERASE        2
  134. #define    VKILL        3
  135. #define    VEOF        4
  136. #define    VMIN        VEOF
  137. #define    VEOL        5
  138. #define    VTIME        VEOL
  139. #define    VEOL2        6
  140. #define    VSWTCH        7
  141. #define    VSTART        8
  142. #define    VSTOP        9
  143. #define    VSUSP        10
  144. #define    VDSUSP        11
  145. #define    VREPRINT    12
  146. #define    VDISCARD    13
  147. #define    VWERASE        14
  148. #define    VLNEXT        15
  149. #define    VSTATUS        16
  150.  
  151. /*
  152.  * codes 1-5 are used for obsolete calls
  153.  */
  154. #define    TCXONC        _IO('T', 6)
  155. #define    TCFLSH        _IO('T', 7)
  156. #define    TCGETS        _IOR('T', 8, struct termios)
  157. #define    TCSETS        _IOW('T', 9, struct termios)
  158. #define    TCSETSW        _IOW('T', 10, struct termios)
  159. #define    TCSETSF        _IOW('T', 11, struct termios)
  160. #define    TCSNDBRK    _IO('T', 12)
  161. #define    TCDRAIN        _IO('T', 13)
  162.  
  163. #define    NCCS    17
  164.  
  165. /*
  166.  * Ioctl control packet
  167.  */
  168. struct termios {
  169.     unsigned long    c_iflag;    /* input */
  170.     unsigned long    c_oflag;    /* output */
  171.     unsigned long    c_cflag;    /* control */
  172.     unsigned long    c_lflag;    /* line discipline */
  173.     char        c_line;        /* line discipline number */
  174.     unsigned char    c_cc[NCCS];    /* control characters */
  175. };
  176.  
  177. #endif /* _TERMIOS */
  178.  
  179. @
  180.  
  181.  
  182. 1.1
  183. log
  184. @Initial revision
  185. @
  186. text
  187. @d16 1
  188. a16 1
  189.  * $Header: /sprite/src/lib/include/sys/RCS/termios.h,v 1.1 89/01/06 03:44:57 rab Exp $
  190. d97 1
  191. @
  192.